package com.jgp.security.secrepository;

import com.jgp.security.secmodel.SecInstitutionUser;
import com.jgp.sys.repository.JGPRepository;

import java.util.List;

/**
 * 项目   jgp-cloud-parent
 * 作者   loufei
 * 时间   2018/12/9
 */
public interface SecInstitutionUserRepository extends JGPRepository<SecInstitutionUser,String> {
    List<SecInstitutionUser> findByUserId(String userId);
    List<SecInstitutionUser> findByInstitutionId(Long institutionId);
    
    void deleteByUserIdAndInstitutionIdIn(String userId,List<Long> institutionIds);
    
    List<SecInstitutionUser> findByInstitutionIdIn(List<Long> institutions);
}
